#!/bin/sh

if [ ! -f "/root/test.txt"] ; then
	touch /root/test.txt
fi

until [ -s /root/test.txt ]
do
	ls /dev/ | grep ttyUSB > /root/test.txt
	sleep 1s
done
 
rm -rf /root/test.txt
touch /root/test.txt


wvdial &
sleep 40s

/home/debian/trunk/main/main &
